package com.hzw.saas.service.rss.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzw.saas.service.rss.model.JournalArticle;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 期刊摘要
 Mapper 接口
 * </p>
 *
 * @author sonam
 * @since 2021-06-30
 */
@Mapper
public interface JournalArticleMapper extends BaseMapper<JournalArticle> {

    @Select("<script> delete from tb_journal_article where pid in <foreach item=\"pid\" collection=\"pids\"  open=\"(\" separator=\",\" close=\")\"> #{pid} </foreach> </script>")
    void deleteByIdFromSql(@Param("pids") List<String> pids);

    @Delete("<script> delete from tb_journal_article </script>")
    void deleteAll();
}
